//
//  SpeedCoachComms.h
//  SpeedCoach Importer
//
//  Created by Roelant Ossewaarde on 4/8/11.
//  Copyright 2011 SUNY Buffalo. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "serialcomms.h"
#include <IOKit/IOKitLib.h>
#include <IOKit/serial/IOSerialKeys.h>
#if defined(MAC_OS_X_VERSION_10_3) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_3)
#include <IOKit/serial/ioss.h>
#endif
#include <IOKit/IOBSD.h>
#import "SpeedCoach_Importer_AppDelegate.h"

@class  SpeedCoach_Importer_AppDelegate;

@interface SpeedCoachComms : NSObject {
	fd_set fds;
	int filedescriptor;
	SpeedCoach_Importer_AppDelegate *appDelegate;
}

-(int) initializeComms;
+(NSData *) readEprom:(int)eprom;
void initport(int fd);
-(void) close;

@end
